import store from '../index'
import axios from '../../request/axios'
import { 
  UPDATE_USER_INFO
} from '../constants/actionTypes';

// 更新全局用户信息
export function updateUserInfo(userinfo){
  store.dispatch({
    type: UPDATE_USER_INFO,
    userinfo
  })
}